package com.hirain.adapter;

/**
 * Created by caicf on 2016/8/28.
 */

/**
 * 适配器，实现目标接口，并含有被适配的一个引用
 */
public class Adapter implements Target {
    private Adaptee adaptee;

    public Adapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    @Override
    public void request() {
        adaptee.questForData();
    }
}
